package com.zzl.finance.data.dto.feign;

import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author ：hyt
 * @description：TODO
 * @date ：2022/9/16 13:11
 */
@Data
public class UserManegeAddDto {
    @NotBlank(message = "账号不能为空！")
    @ApidocModelProperty(description = "账号")
    private String userAccount;

    @NotBlank(message = "管理员姓名不能为空！")
    @ApidocModelProperty(description = "管理员姓名")
    private String userNameCertification;

    @NotBlank(message = "身份证不能为空！")
    @Pattern(regexp = "(^\\d{18}$)|(^\\d{15}$)", message = "身份证输入不正确！")
    @ApidocModelProperty(description = "身份证")
    private String userCertification;

    @Pattern(regexp = "(^1[0-9]{10}$)", message = "手机号码输入不正确！")
    @NotBlank(message = "手机号码不能为空")
    @ApidocModelProperty(description = "管理员手机号")
    private String userPhone;

    @NotBlank(message = "企业id不能为空")
    @ApidocModelProperty(description = "所属企业id")
    private String enterpriseId;

    @NotBlank(message = "企业名称不能为空")
    @ApidocModelProperty(description = "企业名称")
    private String enterpriseName;

    @NotNull(message = "用户类别不能为空")
    @ApidocModelProperty(description = "用户类别0.成员企业1.供应商，2核心企业 3 平台 4 资方")
    private Integer userCategory;

    private Integer userManage;
    @NotNull(message = "证件类型不能为空")
    @ApidocModelProperty(description = "证件类型 枚举值 0，身份证")
    private String certificatesType;
}
